﻿@model MsForgeReboot.Framework.ViewModels.UserGroupEditModel

@section Header{
    <script src="~/Scripts/ckeditor/ckeditor.js"></script>
}

<h2>@ViewBag.Title</h2>

@using (Html.BeginForm("Edit", null, FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Korisnička grupa</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="control-group">
            @Html.LabelFor(model => model.Title, new { @class = "control-label" })

            <div class="controls">
                @Html.EditorFor(model => model.Title)
                @Html.ValidationMessageFor(model => model.Title)
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.Body, new { @class = "control-label" })

            <div class="controls">
                @Html.EditorFor(model => model.Body)
                @Html.ValidationMessageFor(model => model.Body)
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.Author, new { @class = "control-label" })

            <div class="controls">
                @Html.EditorFor(model => model.Author)
                @Html.ValidationMessageFor(model => model.Author)
            </div>
        </div>

        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-success">Snimi <i class="icon-save"></i></button>
            </div>
        </div>

    </fieldset>
}

<div>
    @Html.ActionLink("Nazad na listu", "Index")
</div>

<script>
    @section Scripts {
    @Scripts.Render("~/bundles/controlpanel/usergroup/edit")
}</script>
